#include <stdio.h>

int main(int argc, char *argv[]) {

    int n = 0, count = 0;
    scanf("%d", &n);
    
    for (int i = 1; i < n/5; i++)
    {
        for (int k = 1; k < n/2; k++)
        {
            for (size_t z = 1; z < n; z++)
            {
                if(i*5+k*2+z==n){
                    count++;
                }
            }
            
        }
    }

    printf("%d", count);

    return 0;
}